package org.jeecg.modules.car.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.system.entity.BaseEntity;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 商家管理
 * @Author: liurui
 * @Date:   2020-10-17
 * @Version: V1.0
 */
@Data
@TableName("car_merchant")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="car_merchant对象", description="商家管理")
public class CarMerchant extends BaseEntity {
    
	/**记录id*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "记录id")
	private String id;
	/**物业公司*/
    @ApiModelProperty(value = "物业公司")
	private String tenantId;
	/**车场ID*/
    @ApiModelProperty(value = "车场ID")
	private String parkId;
	/**车场*/
	@Excel(name = "车场", width = 15)
    @ApiModelProperty(value = "车场")
	private String parkName;
	/**商户名称*/
	@Excel(name = "商户名称", width = 15)
    @ApiModelProperty(value = "商户名称")
	private String name;
	/**商户地址*/
	@Excel(name = "商户地址", width = 15)
    @ApiModelProperty(value = "商户地址")
	private String address;
	/**登录名称*/
	@Excel(name = "登录名称", width = 15)
    @ApiModelProperty(value = "登录名称")
	private String loginName;
	/**登录密码*/
//	@Excel(name = "登录密码", width = 15)
    @ApiModelProperty(value = "登录密码")
	private String loginPwd;
	@ApiModelProperty(value = "盐")
	@JsonIgnore
	private String salt;
	/**余额*/
	@Excel(name = "余额", width = 15)
    @ApiModelProperty(value = "余额")
	private java.math.BigDecimal remainAmount;
	/**赠送余额*/
	@Excel(name = "赠送余额", width = 15)
	@ApiModelProperty(value = "赠送余额")
	private java.math.BigDecimal donateAmount;
	/**赠送余额*/
	@Excel(name = "每月赠送基础金额", width = 15)
	@ApiModelProperty(value = "每月赠送基础金额")
	private java.math.BigDecimal initialDonateAmount;
	/**可透支金额*/
	@Excel(name = "可透支金额", width = 15)
    @ApiModelProperty(value = "可透支金额")
	private java.math.BigDecimal overdraftAmount;
	@Excel(name = "折扣", width = 15)
	@ApiModelProperty(value = "折扣")
	private double discountScale;
	/**第三方验证标识*/
	@Excel(name = "第三方验证标识", width = 15)
    @ApiModelProperty(value = "第三方验证标识")
	private String outVerificationId;
	/**是否系统商家（1：是  0：否）*/
	@Excel(name = "是否系统商家（1：是  0：否）", width = 15)
    @ApiModelProperty(value = "是否系统商家（1：是  0：否）")
	@Dict(dicCode = "is_sys_merchant")
	private Integer isSysMerchant;
	/**同一账户多处登录（0：  允许   1：禁止）*/
	@Excel(name = "同一账户多处登录（1：  允许   0：禁止）", width = 15)
    @ApiModelProperty(value = "同一账户多处登录（1：  允许   0：禁止）")
	@Dict(dicCode = "is_repeat_login")
	private Integer isRepeatLogin;
	/**createBy*/
    @ApiModelProperty(value = "createBy")
	private String createBy;
	/**createTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "createTime")
	private Date createTime;
	/**updateBy*/
    @ApiModelProperty(value = "updateBy")
	private String updateBy;
	/**updateTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "updateTime")
	private Date updateTime;
	/**remarks*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "remarks")
	private String remarks;

	@TableLogic
    @ApiModelProperty(value = "delFlag")
	private String delFlag;
	@ApiModelProperty(value = "projectId")
	private String projectId;
	@Excel(name = "项目名称", width = 15)
	@ApiModelProperty(value = "projectName")
	private String projectName;

	@ApiModelProperty(value = "项目编号")
	@TableField(exist = false)
	private  String projectCode;

	@TableField(exist = false)
	private String createName;
}
